﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000505 RID: 1285
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ExpUpEquipmentScRsp : IMessage<ExpUpEquipmentScRsp>, IMessage, IEquatable<ExpUpEquipmentScRsp>, IDeepCloneable<ExpUpEquipmentScRsp>, IBufferMessage
	{
		// Token: 0x170010A0 RID: 4256
		// (get) Token: 0x06003A24 RID: 14884 RVA: 0x0009FBC1 File Offset: 0x0009DDC1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ExpUpEquipmentScRsp> Parser
		{
			get
			{
				return ExpUpEquipmentScRsp._parser;
			}
		}

		// Token: 0x170010A1 RID: 4257
		// (get) Token: 0x06003A25 RID: 14885 RVA: 0x0009FBC8 File Offset: 0x0009DDC8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ExpUpEquipmentScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170010A2 RID: 4258
		// (get) Token: 0x06003A26 RID: 14886 RVA: 0x0009FBDA File Offset: 0x0009DDDA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ExpUpEquipmentScRsp.Descriptor;
			}
		}

		// Token: 0x06003A27 RID: 14887 RVA: 0x0009FBE1 File Offset: 0x0009DDE1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ExpUpEquipmentScRsp()
		{
		}

		// Token: 0x06003A28 RID: 14888 RVA: 0x0009FBF4 File Offset: 0x0009DDF4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ExpUpEquipmentScRsp(ExpUpEquipmentScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.returnItemList_ = other.returnItemList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06003A29 RID: 14889 RVA: 0x0009FC2A File Offset: 0x0009DE2A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ExpUpEquipmentScRsp Clone()
		{
			return new ExpUpEquipmentScRsp(this);
		}

		// Token: 0x170010A3 RID: 4259
		// (get) Token: 0x06003A2A RID: 14890 RVA: 0x0009FC32 File Offset: 0x0009DE32
		// (set) Token: 0x06003A2B RID: 14891 RVA: 0x0009FC3A File Offset: 0x0009DE3A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x170010A4 RID: 4260
		// (get) Token: 0x06003A2C RID: 14892 RVA: 0x0009FC43 File Offset: 0x0009DE43
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<PileItem> ReturnItemList
		{
			get
			{
				return this.returnItemList_;
			}
		}

		// Token: 0x06003A2D RID: 14893 RVA: 0x0009FC4B File Offset: 0x0009DE4B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ExpUpEquipmentScRsp);
		}

		// Token: 0x06003A2E RID: 14894 RVA: 0x0009FC5C File Offset: 0x0009DE5C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ExpUpEquipmentScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && this.returnItemList_.Equals(other.returnItemList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06003A2F RID: 14895 RVA: 0x0009FCAC File Offset: 0x0009DEAC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			num ^= this.returnItemList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06003A30 RID: 14896 RVA: 0x0009FCF9 File Offset: 0x0009DEF9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06003A31 RID: 14897 RVA: 0x0009FD01 File Offset: 0x0009DF01
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06003A32 RID: 14898 RVA: 0x0009FD0C File Offset: 0x0009DF0C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.Retcode);
			}
			this.returnItemList_.WriteTo(ref output, ExpUpEquipmentScRsp._repeated_returnItemList_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06003A33 RID: 14899 RVA: 0x0009FD5C File Offset: 0x0009DF5C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			num += this.returnItemList_.CalculateSize(ExpUpEquipmentScRsp._repeated_returnItemList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06003A34 RID: 14900 RVA: 0x0009FDB0 File Offset: 0x0009DFB0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ExpUpEquipmentScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this.returnItemList_.Add(other.returnItemList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06003A35 RID: 14901 RVA: 0x0009FDFD File Offset: 0x0009DFFD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06003A36 RID: 14902 RVA: 0x0009FE08 File Offset: 0x0009E008
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 24U)
				{
					if (num != 74U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.returnItemList_.AddEntriesFrom(ref input, ExpUpEquipmentScRsp._repeated_returnItemList_codec);
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040016CF RID: 5839
		private static readonly MessageParser<ExpUpEquipmentScRsp> _parser = new MessageParser<ExpUpEquipmentScRsp>(() => new ExpUpEquipmentScRsp());

		// Token: 0x040016D0 RID: 5840
		private UnknownFieldSet _unknownFields;

		// Token: 0x040016D1 RID: 5841
		public const int RetcodeFieldNumber = 3;

		// Token: 0x040016D2 RID: 5842
		private uint retcode_;

		// Token: 0x040016D3 RID: 5843
		public const int ReturnItemListFieldNumber = 9;

		// Token: 0x040016D4 RID: 5844
		private static readonly FieldCodec<PileItem> _repeated_returnItemList_codec = FieldCodec.ForMessage<PileItem>(74U, PileItem.Parser);

		// Token: 0x040016D5 RID: 5845
		private readonly RepeatedField<PileItem> returnItemList_ = new RepeatedField<PileItem>();
	}
}
